package com.fuzamei.rent.receiver;

import org.apache.log4j.Logger;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "hello")
public class Receiver {

    Logger logger = Logger.getLogger(Receiver.class);

    @RabbitHandler
    public void handle(String hello){
        logger.info("receiver："+hello);
    }
}
